<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>消息管理</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <!--固定table列-->
    <link href="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/css/input_tags.css"/>
    <!--编辑器插件-->
    <link rel="stylesheet" href="/css/froala_editor.min.css" />
    <link rel="stylesheet" href="/css/froala_editor.pkgd.min.css" />
    <link rel="stylesheet" href="/css/plugins.pkgd.min.css" />
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css"/>
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css"/>
    <link rel="stylesheet" type="text/css" href="/css/daterangepicker.css" />
    <link rel="stylesheet" href="/js/need/verfont.css" />
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-multiselect.css" type="text/css"/>
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
    <link rel="stylesheet" href="/css/skin.css"/>
    <link rel="stylesheet" href="/css/bootstrapValidator.min.css" />
    <link rel="stylesheet" href="/css/messageManager/user/messageFormUser.css"/>

</head>
<body>
<div class="container-fluid customer-page">
    <div class="card">
        <div class="card-header">
            <h1 class="locat-img">消息中心

            </h1>
        </div>
        <div class="card-body">
            <div class="headerContainer clearfix">
                <ul class="new-tabs pull-left col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <!-- 全部 会员客户 非会员客户-->
                    <li class="nav-item active">
                        <a href="#" data-toggle="tab" aria-expanded="false"  onclick="tabSwitch(this,0,2)">已读消息</a>
                    </li>
                    <li class="nav-item">
                        <a href="#" data-toggle="tab" aria-expanded="false"  onclick="tabSwitch(this,1,2)">未读消息</a>
                    </li>
                    <li class="nav-item">
                        <a href="#" data-toggle="tab" aria-expanded="false"  onclick="tabSwitch(this,2,2)">审批消息</a>
                    </li>
                    <li class="nav-item">
                        <a href="#" data-toggle="tab" aria-expanded="false"  onclick="tabSwitch(this,3,2)">回款消息</a>
                    </li>
                    <li class="nav-item">
                        <a href="#" data-toggle="tab" aria-expanded="false"  onclick="tabSwitch(this,4,2)">系统消息</a>
                    </li>
                    <li class="nav-item">
                        <a href="#" data-toggle="tab" aria-expanded="false"  onclick="tabSwitch(this,'',1)">已发消息</a>
                    </li>
                </ul>
            </div>
            <div class="nav-tab">
                <div class="tab-active active" >
                    <div class="btn-box">
                        <button class="btn btn-default btn-read" onclick="markDelet(1)">标记已读</button>
                        <button class="btn btn-default" onclick="markDelet(2)">标记删除</button>
                        <div class="pull-right locat-img">
<!--                            <span data-toggle="modal"-->
<!--                                  data-target="#newMessage"-->
<!--                                  aria-expanded="false"-->
<!--                                  aria-controls="newMessage"-->
<!--                                  class=""-->
<!--                            >新建消息</span>-->
                            <button style="margin: 0;" type="button" class="btn btn-label btn-success"
                                    data-toggle="modal"
                                    data-target="#newMessage"
                                    aria-expanded="false"
                                    aria-controls="newMessage"
                            >
                                <label><i class="mdi mdi-plus"></i></label>
                                新建
                            </button>
                        </div>
                    </div>
                    <input type="hidden" id="newsType" value="0">
                    <input type="hidden" id="sentMessage" value="2">
                    <table id="messageTable"></table>
                </div>

            </div>



        </div>
    </div>
</div>

<!-- 新建消息 弹窗 -->
<div class="modal fade bs-example-modal-lg modal-edit" tabindex="-1" role="dialog" id="newMessage">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4>新建消息</h4>
            </div>
            <a href="#"></a>

            <div class="modal-body" >
                <form class="form-horizontal" >
                    <div class="row " style="padding: 30px">
                        <div class="form-group">
                            <label class="control-label label-required col-sm-2 ">接收人：</label>
                            <div class="form-content col-sm-3">

                                <select class="form-control" id="companyList" name="companyList" type="text" title="请选择部门" data-live-search="true" onchange="changeAhhMessage(this)" >
                                    <option value="">请选择</option>
                                </select>
                            </div>
                            <div class="form-content col-sm-3">

                                <select class="form-control" id="addMessage" name="addMessage" type="text" title="请选择业务员" data-live-search="true" >
                                    <option value="">请选择</option>
                                </select>
                            </div>
                        </div>

                        <div class="clearfix"></div>
                        <div class="message-distance form-group">
                            <label class="control-label label-required col-sm-2 ">消息主题：</label>
                            <div class="form-content col-sm-6">

                                <input type="text" id="theme" name="theme" class="form-control" placeholder="请输入">
                            </div>

                        </div>
                        <div class="clearfix"></div>

                        <div class="message-distance form-group">
                            <label class="control-label label-required col-sm-2 ">消息内容：</label>
                            <div class="form-content col-sm-10">
                                <div id="editor"></div>
<!--                                <textarea class="form-control" id="newsDetail" name="newsDetail" placeholder="请输入" style="height: 200px;"></textarea>-->
                            </div>

                        </div>
                        <div class="clearfix"></div>


                        <div class="text-center message-distance">
                            <button class="btn btn-primary" type="button" onclick="submitNewMessage()" >
                                <span>确认</span>
                            </button>
                            <button class="btn btn-default" data-dismiss="modal" >取消</button>
                        </div>
                    </div>
                </form>
            </div>

        </div>
    </div>
</div>

</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<!--标签插件-->
<script src="/js/jquery-tags-input/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script type="text/javascript" src="/js/crm/common/dataRangePicker.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<!--table固定列-->
<script type="text/javascript" src="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js"></script>
<!-- 图表 -->
<script type="text/javascript" src="/js/echarts.min.js"></script>
<!-- 编辑器插件 -->
<script type="text/javascript" src="/js/froala_editor.min.js"></script>
<script type="text/javascript" src="/js/froala_editor.pkgd.min.js"></script>
<script type="text/javascript" src="/js/plugins.pkgd.min.js"></script>
<script type="text/javascript" src="/js/table.min.js"></script>
<script type="text/javascript" src="/js/video.min.js"></script>
<script type="text/javascript" src="/js/zh_cn.js"></script>
<!-- 子页面公用js -->
<script type="text/javascript" src="/js/bootstrapValidator.min.js"></script>
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/messageManager/user/messageFormUser.js"></script>
</html>